package net.j4love.spring.mvc.ex.quickstart;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author He Peng
 * @create 2017-06-03 1:02
 * @update 2017-06-03 1:02
 * @updatedesc : 更新说明
 * @see
 */

@Controller
public class AnnotationQuickStartController {

    @RequestMapping(path = "/hello-world")
    public ModelAndView hello() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("quickstart");
        modelAndView.addObject("responseSrc",this.getClass().getName());
        return modelAndView;
    }
}
